let a = [
  {
    label: "社区1",
    x: 123,
    y: 234,
    z: 345,
  },
  {
    label: "社1区1",
    x: 123,
    y: 234,
    z: 345,
  },
];

function fn(arr) {
  for (i = 0; i < arr.length; i++) {
    for (item in arr[i]) {
      console.log(typeof arr[i][item]);
      if (arr[i][item] instanceof Number) {
        console.log(arr[i][item]);
      }
    }
  }
}

console.log(fn(a));
